package com.lzh.tiktok.user.controller;

import com.lzh.tiktok.user.vo.VideoResponseVo;
import com.lzh.tiktok.user.vo.VideoVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lizhihang
 * @create 2023-01-17 14:43
 */
@RestController
@RequestMapping("/douyin/publish")
@Slf4j
public class PublishController {

    /**
     * 返回用户投稿过的所有视频
     *
     * @return
     */
    @GetMapping("/list")
    public VideoResponseVo getPubshList(@RequestParam("token") String token,
                                        @RequestParam("user_id") String user_id) {
        List<VideoVo> videoVoList = new ArrayList<>();
        return VideoResponseVo.suceess(videoVoList);
    }

}
